#include <cstdio>

const int maxn = 100010;

int main() {
	int n, temp, target;
	int coins[maxn] = {0};
	scanf("%d%d", &n, &target);
	for (int i = 0; i < n; i++) {
		scanf("%d", &temp);
		coins[temp]++;
	}

	for (int i = 0; i < target; i++) {
		if (coins[i] && coins[target-i]) {
			if (i==target-i && coins[i] <= 1) { // 考虑相同硬币: 10 - 5, 5
				continue;
			}
			printf("%d %d\n", i, target-i);
			return 0;
		}
	}
	printf("No Solution\n");

	return 0;
}
